<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<div >
	<!-- t改为shieldTarget，且为jQuery选择器形式 -->
    <form action="${ctxPathA}/system/timedtask/log/search" method="post" shieldTarget="#searchResult" class="searchForm">
    	<shield:token/>
        <div class="search-box">
		    <span class="search-i"><b>任务：</b>
				<!-- 增加样式select2_plugin，data-v表示默认值-->   
		    	<select name="<shield:encrypt value="equal_taskId"/>"  class="select2_plugin">
	<c:forEach var="task" items="${tasks }">
					<option value="${task.id }">${task.jobName }</option>
	</c:forEach>
				</select>
		    </span>
		    <span class="search-i"><b>执行时间：</b>
		    	<input type="text" name="<shield:encrypt value="date_sexecTime"/>" class="Wdate" value=""
                   id="startDate" shieldSettings="{maxDate:'#F{$dp.$D(\'endDate\')}'}"/>-
            	<input type="text" name="<shield:encrypt value="date_eexecTime"/>" value="" class="Wdate" id="endDate" shieldSettings="{minDate:'#F{$dp.$D(\'startDate\')}'}"/>
            </span>
		    <span class="search-i"><b>执行IP：</b><input type="text" name="<shield:encrypt value="equal_serverIp"/>"/></span>
		    <span class="search-i"><b>任务执行类型</b>
		    	<select name="<shield:encrypt value="equal_type"/>">
		    		<option value="">全部</option>
		    		<option value="0">启动</option>
		    		<option value="1">任务开始</option>
		    		<option value="2">任务结束</option>
		    		<option value="3">任务运行中</option>
		    		<option value="4">运行异常</option>
		    		<option value="9">关闭</option>
		    		<option value="10">注册</option>
		    	</select>
		    </span>
            <span class="search-i">
	            <input class="submit" type="submit" name="doSearch" value="查询">
            </span>
        </div>
        <div id="searchResult"></div>
    </form>
</div>
</shield:permssion>